/*
 * Android Runner is a multiplayer GPS game fully written by Xurxo Mendez Perez
 * 
 * Copyright (C) 2009 Xurxo Mendez Perez
 *   
 * This file is part of Android Runner.
 * 
 * Android Runner is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Android Runner is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Android Runner.  If not, see <http://www.gnu.org/licenses/>.
 */

package es.sonxurxo.androidrunner.model.persistence.player.entity;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * 
 * @author "Xurxo Mendez Perez"
 *
 */
@Embeddable
public class UserData {
	
	private String login;
	private String encryptedPassword;
	private String email;
	private boolean showPersonalInfo;
	private String phone;
	private String name;
	private String surname;
	private String country;
	private String role;
	
	public UserData() {
		// Empty on purpose
	}
	
	public UserData(String login, String password, String email, boolean showPersonalInfo, 
			String phone, String name, String surname, String country, String role) {
		super();
		this.login = login;
		this.encryptedPassword = password;
		this.email = email;
		this.showPersonalInfo = showPersonalInfo;
		this.phone = phone;
		this.name = name;
		this.surname = surname;
		this.country = country;
		this.role = role;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public boolean isShowPersonalInfo() {
		return this.showPersonalInfo;
	}

	public void setShowPersonalInfo(boolean showPersonalInfo) {
		this.showPersonalInfo = showPersonalInfo;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCountry() {
		return this.country;
	}

	public void setCountry(String country) {
		this.country = country;
	}
	
	public String getLogin() {
		return this.login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "encPassword")
	public String getEncryptedPassword() {
		return this.encryptedPassword;
	}

	public void setEncryptedPassword(String encryptedPassword) {
		this.encryptedPassword = encryptedPassword;
	}

	public String getSurname() {
		return this.surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public String getRole() {
		return this.role;
	}

	public void setRole(String role) {
		this.role = role;
	}
}
